﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Runtime.InteropServices;
//using System.Text;
//using System.Threading.Tasks;
//using UnityEngine;


//public class MediaGLViewBind : BaseJavaBind
//{
//    public MediaGLViewBind(AndroidJavaObject obj) : base(obj)
//    {

//    }
//    [DllImport("javaaddr")]
//    //[DllImport("__Internal")]
//    private static extern IntPtr GetJniEnv();

//    //[DllImport("__Internal")]
//    [DllImport("javaaddr")]
//    private static extern long GetAddr(IntPtr javaobj);
//    public IntPtr GetBuffer()
//    {
     
//        var bufobj = m_instobj.Call<AndroidJavaObject>("GetBuffer");

//        //IntPtr jni = GetJniEnv(); 这个只是用来检查 so 是否正确取到JNI了

//        IntPtr ptr = new IntPtr(GetAddr(bufobj.GetRawObject()));
//        return ptr;
//    }
//    public bool HasGLInit()
//    {
//        return m_instobj.Call<bool>("HasGLInit");
//    }
//}

